defaultvalue: Ignore property to actually pass
authorDaniel Boles <dboles.src@gmail.com>
Fri, 29 Jun 2018 17:53:54 +0000 (18:53 +0100)
committerDaniel Boles <dboles.src@gmail.com>
Fri, 29 Jun 2018 17:57:43 +0000 (18:57 +0100)
GtkFontChooserWidget:tweak-action gets set in init(), so we have to skip
testing that it is the default NULL for a GObject, or the test fails.

testsuite/gtk/defaultvalue.c

index 05f176f950c5120698a3fabf82fce9b4bbfe79cd..1f73fa5825fbcc30cbf6a4ed04657e374248f51b 100644 (file)
@@ -232,6 +232,15 @@ G_GNUC_BEGIN_IGNORE_DEPRECATIONS
            strcmp (pspec->name, "cell-area-context") == 0))
        continue;
 
+G_GNUC_END_IGNORE_DEPRECATIONS
+
+      /* This is set in init() */
+      if (g_type_is_a (type, GTK_TYPE_FONT_CHOOSER_WIDGET) &&
+          strcmp (pspec->name, "tweak-action") == 0)
+        continue;
+
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
+
       if (g_type_is_a (type, GTK_TYPE_ICON_VIEW) &&
          (strcmp (pspec->name, "cell-area") == 0 ||
            strcmp (pspec->name, "cell-area-context") == 0))
@@ -380,6 +389,7 @@ G_GNUC_END_IGNORE_DEPRECATIONS
          if ((pspec->flags & G_PARAM_READABLE) == 0)
            continue;
 
+          /* This is desktop-dependent */
           if (g_type_is_a (type, GTK_TYPE_WINDOW) &&
               strcmp (pspec->name, "decoration-button-layout") == 0)
             continue;